/*
 * @Author: your name
 * @Date: 2020-07-27 22:23:23
 * @LastEditTime: 2020-08-07 22:20:05
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \H52002-VueMobile-accp\honeybud\src\store\index.js
 */ 
import Vue from "vue";
import Vuex from "vuex";

Vue.use(Vuex);

export default new Vuex.Store({
  state: {
    pid:'',
  },
  mutations: {
    setProductId(state,productId){
      
      state.pid = productId
    }
  },
  actions: {
    productId({commit},productId){
      
      commit('setProductId',productId)
    }
  },
  modules: {}
});
